package c.j.a.d.a.j;

import android.graphics.Bitmap;
import java.util.LinkedHashMap;
import java.util.Map.Entry;

/* compiled from: NotificationIconCache */
public class d {
    public static volatile d b;
    public a<Integer, Bitmap> a;

    /* compiled from: NotificationIconCache */
    public static class a<K, T> extends LinkedHashMap<K, T> {
        public final int a;

        public a(int i, int i2) {
            super(i2, 0.75f, true);
            this.a = i;
        }

        public boolean removeEldestEntry(Entry<K, T> entry) {
            return size() > this.a;
        }
    }

    public d() {
        this.a = null;
        this.a = new a(8, 4);
    }

    public static d a() {
        if (b == null) {
            synchronized (d.class) {
                if (b == null) {
                    b = new d();
                }
            }
        }
        return b;
    }
}
